/*
 * Copyright © 2017-2018 All Rights Reserved
 * 上海仰空网络科技有限公司 版权所有
 */

package org.chw.callback.config;

import org.chw.callback.handler.RequestHandler;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * @className InterceptorConfig
 * @description
 */
@Configuration
public class InterceptorConfig extends WebMvcConfigurationSupport {


  @Override
  protected void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new RequestHandler());
  }
}
